package com.badu.fx.domain;

import java.io.Serializable;

import java.util.Date;

import org.springframework.data.annotation.Id;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.annotations.Version;
import com.baomidou.mybatisplus.enums.IdType;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 分销级别关联表
 * </p>
 *
 * @author astupidcoder123
 * @since 2021-01-13
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("fx_level_record")
public class FxLevelRecord extends Model<FxLevelRecord> {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.UUID)
    private String id;
    private String createUser;
    private String updareUser;
    private Date createDate;
    private Date updateDate;
    /**
     * 上级openid
     */
    private String parentOpenId;
    /**
     * 下级openId
     */
    private String childOpenId;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
